package my.jbf.ALLINONE;

import android.app.*;
import android.os.*;
import android.view.*;
import android.content.pm.*;
import android.view.View.*;
import android.widget.*;

import android.content.*;
import my.jbf.ALLINONE.TXTReaderAndWriter.*;
import my.jbf.ALLINONE.DBtest.*;

public class MainActivity extends Activity implements OnClickListener
{
	Button TXTReadAndWrite;
	Button DBBTN;
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.main);
		TXTReadAndWrite=findViewById(R.id.TXTReaderAndWriter);
		TXTReadAndWrite.setOnClickListener(this);
		DBBTN=findViewById(R.id.DBbtn);
		DBBTN.setOnClickListener(this);
    }

	@Override
	public void onClick(View p1)
	{
		switch(p1.getId()){
			case R.id.TXTReaderAndWriter:
			{
			startActivity(new Intent(MainActivity.this, TXTReaderAndWriter.class));
			break;
			}
			case R.id.DBbtn:
			{
				startActivity(new Intent(MainActivity.this,DBSQLiteOperateActivity.class));
				break;
			}
		}
		
		// TODO: Implement this method
	}

	
	

	
}
